package com.ij.media.enums;

public enum  VideoEnums {

    NAME(0, "名称"),
    IMG(1, "封面"),
    URL(2, "链接"),
    AREA(3, "地区"),
    TIME(4, "时长"),
    TYPE(5, "类型"),
    INTRO(6, "简介");


    private int key;
    private String value;

    VideoEnums(int key, String value) {
        this.key = key;
        this.value = value;
    }

    public static VideoEnums getVideoEnums(int key) {
        for (VideoEnums ve : values()) {
            if (ve.key == key)
                return ve;
        }
        return null;
    }

    public int getKey() {
        return key;
    }

    public void setKey(int key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
